<template>
	<!-- 消息详情 -->
	<view class="messagedetails_wp">
		<view class="m_title">{{info.title}}</view>
		<view class="m_time">{{info.createtime}}</view>
		<jyf-parser :html="info.content" :selectable="true"></jyf-parser>
	</view>
</template>

<script>
	import jyfParser from "@/components/jyf-parser/jyf-parser";
	export default {
		components: {
			jyfParser
		},
		data() {
			return {
				info: {}
			}
		},
		onLoad(option) {
			this.getinfo(option.id);
		},
		methods:{
			getinfo(id){
				this.$axios('index/msginfo','POST','salemsg',{id}).then(res=>{
					if(res.data.code==200){
						this.info=res.data.data.info;
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.messagedetails_wp {
		color: $font-color-dark;
		padding-bottom: 130upx;
		padding: 0 20upx;
	}

	.m_title {
		padding: 20upx 0;
		font-size: $font-base;
	}

	.m_time {
		border-bottom: 1px hsl(0, 0%, 87%) solid;
		color: $font-color-light;
		padding-bottom: 30upx;
		margin-bottom: 20upx;
	}
</style>
